package com.sfddata.musicpillow.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sfddata.musicpillow.common.utils.PageUtils;
import com.sfddata.musicpillow.user.entity.*;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;

/**
 * 
 *
 * @author jyo
 * @email 820389501@qq.com
 * @date 2022-11-02 15:29:15
 */
public interface TbSleepRecordService extends IService<TbSleepRecordEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Long saveByVo(SleepRecordEntityVo sleepRecordEntityVo);

    CompareEntity compareRecord(SleepRecordEntityVo sleepRecordEntityVo) throws ParseException;

    ArrayList<String> getByUserId(Long userId);

    CompareEntity compareRecord(TbSleepRecordEntity sleepRecordEntity) throws ParseException;

    RecordForIndexEntity getRecordForIndex(Long userId, String time) throws ParseException;

    ArrayList<TbSleepRecordEntity> getWeekRecordBeginDate(Long userId, DateVo date) throws ParseException;

    TbSleepRecordEntityVo convertDate(TbSleepRecordEntity sleepRecord);

    ArrayList<String> getIsReadList(Long userId);


}

